package com.more.offer.designpatterns.adapter.adapter2;

/**
 * @author pinoc
 * @date 2021/11/4
 * @description
 */
public class TestMain {

	public static void main(String[] args) {
		ThreePlug threePlug = new ThreePlug(3);
		ThreeSocket threeSocket  = new ThreeSocket(3);

		threeSocket.isAdapt(threePlug);

		TwoPlug twoPlug = new TwoPlug(2);
		TwoPlugAdapter adapter = new TwoPlugAdapter(twoPlug);
		threeSocket.isAdapt(adapter);
	}


}
